﻿angular.module('picShare').directive('sliderDirective', function (imageDataSvc) {
    return {
        restrict: 'C',
        templateUrl: "/Templates/Include-Templates/slider.html",
        link: function (scope, element, attrs, controller) {
            scope.$watch(function () {
                return imageDataSvc.imageData.length;
            }, function (newVal) {
                scope.photos = imageDataSvc.imageData;
            });
        }

    };
});